package model;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

import bean.UserBean;


public class UserIO	{
	public static void WriteToFile(UserBean userBean, String path) throws IOException	{
		PrintWriter pr = new PrintWriter(new FileWriter(new File(path), true));
		pr.print(userBean.getName()+" "+userBean.getHobby()+"\r\n");
		pr.close();
	}
}
